<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>    
<%@page import="java.util.HashMap"%>
<%@page import="dto.RoomDTO2" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<c:forEach items="${requestScope.map }" var="entry">
	
	<form action="selectByDong.do" method="post">		
		<c:if test="${entry.key=='address'}">
			<c:choose>
			<c:when test="${entry.value.search=='sido'}">
				<input type="hidden" name="dong" value="${entry.value.sido }">
			</c:when>
			<c:when test="${entry.value.search=='dong'}">
				<input type="hidden" name="dong" value="${entry.value.dong }">
			</c:when>
			<c:when test="${entry.value.search=='gugun' }">
				<input type="hidden" name="dong" value="${entry.value.gugun }">
			</c:when>
			<c:otherwise>
				<c:redirect url="main.jsp"/>
			</c:otherwise>
			</c:choose>
		<input type="hidden" name="search" value="${entry.value.search }">
		<input type="submit" value="Return Result" >
		</c:if>		
	</form>
	</c:forEach>
</html>